﻿/*******************************************************************************
 * Copyright © 2016
 * 
 * Description: MVC快速开发平台  FROM http://xmwxgn.com
 *
*********************************************************************************/
using System.Data.Entity.ModelConfiguration;
using ZFine.Domain.Entity;

namespace ZFine.Mapping
{
    public class LogMap : EntityTypeConfiguration<LogEntity>
    {
        public LogMap()
        {
            this.ToTable("Sys_Log");
            this.HasKey(t => t.F_Id);

            Property(p => p.F_Id).HasMaxLength(50);
            Property(p => p.F_Description).HasMaxLength(3000);
            Property(p => p.F_CreatorUserId).HasMaxLength(50);
            Property(p => p.F_Account).HasMaxLength(50);
            Property(p => p.F_NickName).HasMaxLength(50);
            Property(p => p.F_Type).HasMaxLength(50);
            Property(p => p.F_IPAddress).HasMaxLength(50);
            Property(p => p.F_IPAddressName).HasMaxLength(50);
            Property(p => p.F_ModuleId).HasMaxLength(50);
            Property(p => p.F_ModuleName).HasMaxLength(50);
        }
    }
}
